package com.bjpowernode.drools.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("user") //指定mongodb中集合的名字 （表）
public class User {

    @Id
    private ObjectId id;

    private String name;

    private Integer age;
}
